package city.spring.modules.oldman.vo;

import city.spring.modules.oldman.entity.OldmanComplaintEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class OldmanComplaintVO extends OldmanComplaintEntity {
    /**
     * 关联老人的姓名
     */
    private String oldmanName;

    /**
     * 证件号
     */
    private String certificate;

    /**
     * 联系方式
     */
    private String telephone;
    /**
     * 处理状态
     */
    private String handleState;
    /**
     * 回访状态
     */
    private String reviewState;
    /**
     * 回访人
     */
    private String reviewerName;

    /**
     * 该投诉关联的人员列表信息
     */
    private List<ComplaintReceiverExtVO> receivers;

    public OldmanComplaintVO(OldmanComplaintEntity entity) {
        super.setId(entity.getId());
        super.setComplainant(entity.getComplainant());
        super.setPhone(entity.getPhone());
        super.setType(entity.getType());
        super.setOldman(entity.getOldman());
        super.setHappenTime(entity.getHappenTime());
        super.setRelation(entity.getRelation());
        super.setContent(entity.getContent());
        super.setHandle(entity.getHandle());
        super.setHandleTime(entity.getHandleTime());
        super.setHandleRemarks(entity.getHandleRemarks());
        super.setReview(entity.getReview());
        super.setReviewer(entity.getReviewer());
        super.setReviewTime(entity.getReviewTime());
        super.setReviewRemarks(entity.getReviewRemarks());
        super.setGmtCreate(entity.getGmtCreate());
        super.setGmtModified(entity.getGmtModified());
    }
}
